﻿<%@ Page Language="C#" MasterPageFile="~/MasterPages/MasterPage2.master" AutoEventWireup="true" CodeFile="Admin_CapNhatTaiKhoan.aspx.cs" Inherits="KhachHangDaiChung_KhachHangDaiChung_CapNhatThongTin" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<center><h2>Cập Nhật Tài Khoản Cá Nhân</h2></center>
    
    <div style="float:left">
        <asp:Image ID="imgHinhAnh" runat="server" Height="120" Width="120" />
    </div>
<table>
    <tr>
    <td></td>
        <td>
            <asp:CheckBox ID="ckKichHoat" runat="server" Text=" Kích hoạt"/>
        </td>
    </tr>
   <tr>
   <td> Họ Tên:</td>
   <td><asp:TextBox ID="txtHoTen" runat="server" MaxLength="50" Width="180px"></asp:TextBox>
   
    <asp:RequiredFieldValidator ID="rqfvHoTen" runat="server" 
           ErrorMessage="RequiredFieldValidator" ControlToValidate="txtHoTen">*</asp:RequiredFieldValidator></td>
   </tr>
   
   <tr>
   <td>Email:</td>
   <td><asp:TextBox ID="txtEmail" runat="server" MaxLength="100" Rows="3" 
           Width="194px"></asp:TextBox>
       <asp:RequiredFieldValidator ControlToValidate="txtEmail" ID="RequiredFieldValidator3" runat="server" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
           <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                        ControlToValidate="txtEmail" Font-Size="8pt"  ErrorMessage="Email không hợp lệ" 
                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
   
   </td>
   </tr>
   
   <tr>
   <td>Địa chỉ: </td>
   <td><asp:TextBox ID="txtDiaChi" runat="server" MaxLength="50" TextMode="MultiLine"></asp:TextBox>
       <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="RequiredFieldValidator" ControlToValidate="txtDiaChi">*</asp:RequiredFieldValidator>
   </td>
   </tr>
   
   <tr>
   <td>Điện Thoại: </td>
   <td><asp:TextBox ID="txtDienThoai" runat="server" MaxLength="50"></asp:TextBox>
       <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="RequiredFieldValidator" ControlToValidate="txtDienThoai">*</asp:RequiredFieldValidator>                 
       <asp:RangeValidator ControlToValidate="txtDienThoai" ID="RangeValidator1" runat="server" ErrorMessage="Giá trị không hợp lệ" MinimumValue="0" MaximumValue="9999999999999"></asp:RangeValidator>                 
                        </td>
   </tr>
   
   <tr>
   
   <td>Avatar:</td>
   <td><asp:FileUpload ID="fulHinhAnh" runat="server" /></td>
   </tr>
   
   <tr>
   <td>&nbsp;</td>
   <td><asp:CheckBox ID="chkGuiMail" runat="server" 
           Text="Gửi email thông tin sản phẩm yêu thích" /></td>
   </tr>
   
   
   
   <tr>
   <td>
       &nbsp;</td>
       <td><asp:CheckBox ID="chkDoiMatKhau" runat="server"                
               Text="Phát sinh password và gửi cho người dùng" /></td>
   </tr>
   
   
   
   
   <tr>
   <td colspan="2" align="center">
       <asp:Button ID="btnCapNhat" runat="server" 
           Text="Cập Nhật" onclick="btnCapNhat_Click"  />
           <input value="Trở lại" type="button" onclick="history.go(-1)" />
   </td>
           
   </tr>
   </table>
    
</asp:Content>

